<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<ui:composition template="/template.xhtml" xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:a4j="http://richfaces.org/a4j"
                xmlns:rich="http://richfaces.org/rich">
    <ui:define name="ImagemTopo">
        <rich:spacer width="10"/>
        <h:graphicImage value="/resources/images/java.jpg"/>
        <rich:spacer width="20"/> PFC Frederico Mucceli ...
        <br/>
        <br/>
    </ui:define>

    <ui:define name="conteudo">
        <center>
            <br/>
            <rich:messages id="mLogin"
                           layout="table"
                           errorClass="errorClass"
                           infoClass="infoClass"
                           warnClass="warnClass"
                           styleClass="painelMensagem"
                           ajaxRendered="true"/>
            <br/>

            <div class="roundcont" style="text-align: left; width:300px;height:165px">
                <div class="roundtop" >
                    <h:graphicImage value="/resources/images/nw.gif" alt="" width="15" height="15" styleClass="corner" style="display: none;text-align:left" />
                </div>

                <center>
                    <h:form>
                        <br/>
                        <br/>
                        <br/>
                        <br/>
                        <br/>
                        <h:panelGrid cellspacing="3" cellpading="3" columns="2" columnClasses="field-names-bold, fields">
                            <h:outputLabel for="itNomeUsuario">
                                <h:outputText value="#{messages.geralUsuario}: " styleClass="textoLogin"/>
                            </h:outputLabel>

                            <h:inputText id="itNomeUsuario" value="#{identity.username}" required="true"/>

                            <h:outputLabel for="itSenhaUsuario">
                                <h:outputText value="#{messages.geralSenha}: " styleClass="textoLogin"/>
                            </h:outputLabel>

                            <h:inputSecret id="itSenhaUsuario" value="#{identity.password}" required="true"/>
                        </h:panelGrid>
                        <br/>

                        <a4j:commandLink action="#{identity.login}"
                                         value="#{messages.botaoAcessar} >>"
                                         styleClass="button dr-toolbar-ext rich-toolbar"/>
                    </h:form>
                </center>

                <div class="roundbottom">
                    <h:graphicImage value="/resources/images/sw.gif" alt="5" width="15" height="15" styleClass="corner" style="display: none; text-align:left" />
                </div>
            </div>
            <rich:spacer height="200"/>
        </center>
    </ui:define>
    <ui:define name="rodape" >
        <br/>
        Copyright 2009 - MBSolutions - Belo Horizonte
    </ui:define>
</ui:composition>